#include "GamesHistory.h"

GamesHistory::GamesHistory(){
    _games = new GameRecords();
}

void GamesHistory::addGame(GameRecord * game){
    _games->push_back(game);
}

QVector<GameRecord*> * GamesHistory::getGames(){
    return _games;
}

GamesHistory::~GamesHistory(){
    foreach (GameRecord *gameR, *_games) {
        delete gameR;
    }
    delete _games;
}
